package com.dhsc.local.dao.impl.wskh;

import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.dhsc.domain.ywzx.wskh.WskhTsshVo;
import com.dhsc.local.dao.wskh.IWskhTsshDao;

@Repository("twskhtsshdao")
public class WskhTsshDaoImpl implements IWskhTsshDao{
	
	@Autowired
	private SqlSessionTemplate localSqlSessionTemplate;

	@Override
	public List<WskhTsshVo> queryWskhTsshByAll(WskhTsshVo y) {
		return localSqlSessionTemplate.selectList("WskhTsshMapper.queryWskhTsshByAll", y);
	}
	
	@Override
	public List<WskhTsshVo> queryZdzhYwhbByAll(WskhTsshVo y) {
		return localSqlSessionTemplate.selectList("WskhTsshMapper.queryZdzhYwhbByAll", y);
	}
	
	@Override
	public int addTsshHfjg(WskhTsshVo f) {
		return localSqlSessionTemplate.insert("WskhTsshMapper.addTsshhfjg", f);
	}
}